import {API} from './config';
import CustomRequest from '@/utils/Request'

/* 
* 获取今日消息
*/
const summary = async () => {
  return await CustomRequest({
    api: API.workbenchSummary
  })
}

/* 流通率 */
const flowRate = async (type) => {
  return await CustomRequest({
    api: API.workbenchFlowRate,
    params: {type}
  })
}

/* 借阅趋势 */
const borrowTrend = async (type) => {
  return await CustomRequest({
    api: API.workbenchBorrowTrend,
    params: {type}
  })
}


export {
  summary,
  flowRate,
  borrowTrend
}